home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18427 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: hubcap.clemson.edu!usenet
  2. From: rmcguir@hubcap.clemson.edu (Bryan McGuire)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.misc,comp.os.ms-windows.programmer.win32,comp.os.ms-windows.programmer.misc,comp.lang.c++
  4. Subject: Re: [Q] Why doesn't this compile?
  5. Date: Thu, 18 Apr 1996 14:46:25 GMT
  6. Organization: Clemson University
  7. Message-ID: <4l5kma$d2b@hubcap.clemson.edu>
  8. References: <317523C0.5042@eps.agfa.be> <4l3e5l$e1t@druid.borland.com> <woernerDq1299.Fup@netcom.com>
  9. NNTP-Posting-Host: hubcap.clemson.edu
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. woerner@netcom.com (Rob Woerner) wrote:
  13.  
  14. >I agree. However, you can work around it by declaring L outside of A, and
  15. >changing the name of B::L to (say) B::W. The way it is has a hidden 'L', inherited from A, but masked by B::L.
  16. >I think it is confused by the 2 consecutive '::' operators.
  17.  
  18. 1. I disagree,  B::L is not the same scope as A::L. Only static member
  19.    functions can be called out of scope.
  20.  
  21. 2. B::L::f() would use A::L::f() anyway because of how B was inherited
  22. from A.
  23.  
  24. 3. Has anyone noticed that B's constructor is private?
  25.  
  26.  
  27.  
  28.